﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace AMix
{
    public partial class GestionariFrm : FrmRezumat
    {
        public GestionariFrm(ModuleClass mInfo)
            : base(mInfo)
        {
            InitializeComponent();
            workConnString = "ESRPConnectionString";
        }

        private void GestionariFrm_Load(object sender, EventArgs e)
        {
            SqlConnection con = DeschideConexiune(workConnString);
            this.amixGestionariTableAdapter.Connection = con;
            this.amixGestionariTableAdapter.Fill(this.eSRPDataSet.AmixGestionari);
            InchideConexiune(con);
            AddButton("Salveaza", global::ERPStudio.Properties.Resources.salvare, Salvare, ToolStripItemAlignment.Right, true);

            this.listBndSourceMain.Add(amixGestionariBindingSource);
            listTableAdaptor.Add(amixGestionariTableAdapter.Adapter);
        }
    }
}
